package com.fourth.shopping.service.impl;


import com.fourth.shopping.entity.Address;
import com.fourth.shopping.mapper.AddressMapper;
import com.fourth.shopping.service.AddressService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class AddressServiceImpl implements AddressService {

    @Resource
    AddressMapper addressMapper;

    @Override
    public List<Address> getAddress(String userId) {

        return addressMapper.getAddress(userId);
    }

    @Override
    public List<Address> getCurrentOrderAddresses(String orderNo) {
        return addressMapper.getCurrentOrderAddresses(orderNo);
    }
}
